"""
Define elements of our library

/file pkLibraryElement.py
/author Guillaume
/date november, 20th 2012
"""


class pkLibraryElement():
	""" SuperClass of every pykodio library element """
	
	def __init__(self, tags, db_id):
		self.db_id = db_id
		self._tags = tags


	def _get_tag(self, tag):
		return self._tags.get(tag)

	title = property(_get_tag("title"))
	playtime = property(_get_tag("playtime"))
